<?php

// -----------------------------------------------------------------------------

include "config/config.php";
include "DBManager.php";

// -----------------------------------------------------------------------------

// 如果检测到数据库不存在，跳转到数据库创建页面
if (!is_file($dbPath)) {
    $url = "recreateDB.php";
    header("location:$url");
} else {
    $db = new DBManager($dbPath);
}
